import java.util.Scanner;

public class password {
    public static void main(String[] args) {
        int password=11112222;
        int t = 3;
        while(t > 0)
        {
            Scanner scanner=new Scanner(System.in);
            int pw=scanner.nextInt();
            if(password==pw)
            {
                System.out.println("pass");
                break;
            }
            t--;

        }
        if(t==0)
        System.out.println("failed");
    }
}
